/*
 *    Copyright (c) 2018-2025, fanxl All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: fanxl (wangiegie@gmail.com)
 */

package com.snow4cloud.common.model.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author pig code generator
 * @date 2021-02-26 14:39:29
 */
@Data
@TableName("tj_table_column")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "表格列定义")
public class TableColumn extends Model<TableColumn> {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId(type = IdType.INPUT)
	@ApiModelProperty(value = "pk")
	private String columnId;
	/**
	 * 字段名称
	 */
	@ApiModelProperty(value = "字段名称")
	private String columnName;
	/**
	 * 字段
	 */
	@ApiModelProperty(value = "字段")
	private String columnField;
	/**
	 * 样式
	 */
	@ApiModelProperty(value = "样式")
	private String columnCss;
	/**
	 * 类型（0-字符串,1-整形，3-布尔型）
	 */
	@ApiModelProperty(value = "类型（0-字符串,1-整形，3-布尔型）")
	private String columnType;
	/**
	 * 字段
	 */
	@ApiModelProperty(value = "字段")
	private String columnLabel;
	/**
	 * 字段属性
	 */
	@ApiModelProperty(value = "字段属性")
	private String columnProp;
	/**
	 * 宽度
	 */
	@ApiModelProperty(value = "宽度")
	private String columnWidth;
	/**
	 * 格式化函数名称
	 */
	@ApiModelProperty(value = "格式化函数名称")
	private String columnFormatter;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer columnOrder;
	/**
	 * 表格id
	 */
	@ApiModelProperty(value = "表格id")
	private String tableId;
	/**
	 * 表格编码
	 */
	@ApiModelProperty(value = "表格编码")
	private String tableCode;
	/**
	 * 表格名称
	 */
	@ApiModelProperty(value = "表格名称")
	private String tableName;
	/**
	 * 删除标识（0-正常,1-删除）
	 */
	@ApiModelProperty(value = "删除标识（0-正常,1-删除）")
	private String delFlag;
	/**
	 * 是否显示（0-显示，1-不显示）
	 */
	@ApiModelProperty(value = "是否显示（0-显示，1-不显示）")
	private String isShow;
	/**
	 * 居中
	 */
	@ApiModelProperty(value = "居中")
	private String headerAlign;
	/**
	 * 是否搜索条件
	 */
	@ApiModelProperty(value = "是否搜索条件")
	private String isSearch;

	/**
	 * 提示信息
	 */
	@ApiModelProperty(value = "提示信息")
	private String placeholder;

	@ApiModelProperty(value = "是否增加项（1-是，0-否）")
	private Integer isAdd;

	@ApiModelProperty(value = "列数")
	private Integer span;

	@ApiModelProperty(value = "是否列表框（0-输入框，1-列表，2-单选）")
	private String selectType;

	@ApiModelProperty(value = "是否规则提示（1-是，0-否）")
	private String isRule;

	@ApiModelProperty(value = "规则提示信息")
	private String ruleMessage;

	@ApiModelProperty(value = "规则触发")
	private String ruleTrigger;

}
